home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_UMINNgopher.idb / usr / freeware / src / gopher_1.12 / Makefile.z / Makefile
Makefile  |  1997-09-09  |  3KB  |  89 lines

  1. #********************************************************************
  2. # $Author: drich $
  3. # $Revision: 1.1 $
  4. # $Date: 1995/10/03 04:07:21 $
  5. # $Source: /proj/freeware1.0/gopher1.12/src/RCS/Makefile,v $
  6. # $State: Exp $
  7. #
  8. # Paul Lindner, University of Minnesota CIS.
  9. #
  10. # Copyright 1991, 1992 by the Regents of the University of Minnesota
  11. # see the file "Copyright" in the distribution for conditions of use.
  12. #********************************************************************
  13. # MODULE: Makefile
  14. # Makefile for entire gopher distribution.
  15. #*********************************************************************
  16. # Revision History:
  17. # $Log: Makefile,v $
  18. # Revision 1.1  1995/10/03  04:07:21  drich
  19. # gopher 1.2 check-in
  20. #
  21. # Revision 1.3  1992/12/29  23:30:22  lindner
  22. # Removed all references to fanout and mindexd, it's in gopherd now..
  23. #
  24. # Revision 1.2  1992/12/11  19:32:00  lindner
  25. # make tar now uses gnu tar, ignores RCS directorys and symbolic links
  26. #
  27. # Revision 1.1  1992/12/11  19:01:43  lindner
  28. # Gopher1.1 Release
  29. #
  30. #********************************************************************/
  31.  
  32.  
  33. include Makefile.config
  34.  
  35. all: objects server client
  36. server: gopherd/gopherd
  37. client: gopher/gopher
  38. objects: object/libgopher.a
  39.  
  40. gopherd/gopherd: objects
  41.     @echo "Making server"
  42.     @if [ -f /sdmach -a -d ./ir ]; then \
  43.         (echo "Making server with NeXT and WAIS searching";\
  44.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH -DWAISSEARCH" nextwais);\
  45.     elif [ -f /sdmach ]; then \
  46.         (echo "Making server with NeXT searching";\
  47.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH" next); \
  48.     elif [ -d ./ir ]; then \
  49.         (echo "Making server with WAIS searching";\
  50.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DWAISSEARCH" wais); \
  51.     else (echo "Making data server"; cd gopherd; $(MAKE) $(MFLAGS) none) \
  52.     fi
  53.  
  54. gopher/gopher: object/libgopher.a
  55.     @echo "Making client"
  56.     (cd gopher; $(MAKE) $(MFLAGS))
  57.  
  58. object/libgopher.a:
  59.     @echo "Making Objects"
  60.     (cd object; $(MAKE) $(MFLAGS))
  61.  
  62. install:
  63.     (cd gopher; $(MAKE) $(MFLAGS) install);
  64.     (cd gopherd; $(MAKE) $(MFLAGS) install);
  65.     (cd doc; $(MAKE) $(MFLAGS) install)
  66.  
  67. clean:
  68.     (cd gopher;     $(MAKE) $(MFLAGS) clean)
  69.     (cd gopherd;     $(MAKE) $(MFLAGS) clean)
  70.     (cd object;     $(MAKE) $(MFLAGS) clean)
  71.     (cd doc;     $(MAKE) $(MFLAGS) clean)
  72.     -rm -f *~
  73.     -rm -f "examples/Sample Directory/wais-index/index."*
  74.  
  75. spotless: clean
  76.     -rm -f *~
  77.  
  78. tar: spotless Makefile.config.dist
  79.     -rm  -f ir ui bin MANIFEST
  80.     cp Makefile.config.dist Makefile.config
  81.     chmod +w Makefile.config
  82.     touch MANIFEST
  83.     HERE=`basename $$PWD`; \
  84.     echo $$HERE ; \
  85.         cd .. ; \
  86.     find $$HERE -type f -print |grep -v '.o$$' |grep -v '~$$' >$$HERE/MANIFEST ; \
  87.     /usr/gnu/bin/tar  -T $$HERE/MANIFEST -czvf $$HERE.tar.Z 
  88.  
  89.